// component 是相对于 src/pages 目录的
const routes = [
  {
    path: '/test',
    component: './test',
    title: '测试',
  },
  {
    path: '/',
    component: '../layouts',
    title: '门户网站',
    routes: [
      {
        path: '/',
        title: '首页',
        component: './home',
      },
      {
        path: '/boiling',
        title: '沸点',
        component: './boiling',
      },
      {
        path: '/information',
        title: '资讯',
        component: './information',
      },
      {
        path: '/course',
        title: '课程',
        component: './course',
      },
      {
        path: '/activity',
        title: '活动',
        component: './activity',
      },
      {
        path: '/about',
        title: '关于',
        component: './about',
      },
      {
        component: './404',
      },
    ],
  },
];

export default routes;
